﻿using Microsoft.EntityFrameworkCore;
using SaaS.Model.Entity.Blogs;
using System;
using System.Collections.Generic;
using System.Text;

namespace Web.Blog.Utils
{
    public class BlogDbContext : DbContext
    {
        public BlogDbContext(DbContextOptions<BlogDbContext> options) : base(options)
        {

        }
        /// <summary>
        /// 文章
        /// </summary>
        public DbSet<Article> Articles { get; set; }
        /// <summary>
        /// 文章留言
        /// </summary>
        public DbSet<ArticleMessage> ArticleMessages { get; set; }
        /// <summary>
        /// 博客菜单
        /// </summary>
        public DbSet<BlogMenu> BlogMenus { get; set; }
    }
}
